﻿using System;
using static System.Console;
namespace DocumentListBook
{
    class Program
    {
        static void Main(string[] args)
        {
            //Console.WriteLine("Hello World!");

            var dm = new DocumentManager<Document>();
            dm.AddDocument(new Document("天上", "2010-11-1"));
            dm.AddDocument(new Document("人间", "2010-11-11"));
            dm.DisplayAddDocument();

            if (dm.IsDocumentAvailable)
            {
                Document d = dm.GetDocument();
                WriteLine(d.Content);
            }
        }
    }
}
